package com.tianxiao.test.dao;

import java.util.List;

import com.baijia.tianxiao.sqlbuilder.support.CommonDao;
import com.tianxiao.test.model.Area;

public interface AreaDao extends CommonDao<Area> {

    /**
     * 查询某一级所有地域
     * 
     * @param level
     * @return
     */
    public List<Area> getAreaByLevel(int level);

    /**
     * 根据areaId查询对应的父级、子级地域
     * 
     * @param areaId
     * @param level
     * @return
     */
    public List<Area> getSubAreaByIdAndMask(int areaId, int level, long mask);
}
